FROM openjdk:11
LABEL maintainer="Jacky"
LABEL version="1.0"
VOLUME /tmp
ADD chaos-order-service/target/chaos-order-service.jar app.jar
ARG active=base,prod
ENV active ${active}
ENV TimeZone=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone
#ENTRYPOINT ["java", "-jar", "app.jar","--spring.profiles.active=${active}"]
CMD ["/home/chaos/boot.sh restart"]
EXPOSE 18898
